<!-- 右侧  -->
<div id="page-inner">
    <div class="panel-body">
        <div class="row">
            <div class="col-md-12">
                <h1 class="page-header">
                    废水排放评估
                </h1>
            </div>
        </div>
        <div class="row"></div>
        <div id="toolbar" class="btn-group">
            <button id="btn_add" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
            </button>
            <button id="btn_edit" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>编辑
            </button>
            <button id="btn_delete" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
            </button>
            <button id="btn_return" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span>返回
            </button>
        </div>
        <div id="toolbar2" class="btn-group">
            <button id="btn_edit2" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>编辑
            </button>
        </div>
        <table id="table1" class="table-striped table-hover"></table>
        <table id="table2" class="table-striped table-hover"></table>
        <div style="position:absolute;left:47%;top:96%;">
            <button id="calculate" style="width: 80px;height: 30px;">计算</button>
        </div>
    </div>
</div>

<!-- 添加 -->
<div class="modal fade" id="new_data" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">添加一项废水评估</h4>
            </div>
            <div id="new_data_body" class="modal-body">
                <div class="form-group">
                    <label>产品名称</label>
                    <select class="form-control" id="new_company_type" onchange="newCompanyTypeChange()">
                        <option value="">--请选择企业类型--</option>
                        <option value="现有企业">现有企业</option>
                        <option value="新建企业">新建企业</option>
                        <option value="特别企业">特别企业</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>产品名称</label>
                    <select name="productName" class="form-control" id="new_productName"
                            onclick="newProductNameCheck()" onchange="newProductNameChange()">
                        <option value="">--请选择产品名称--</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>单位产品基准排水量</label>
                    <input class="form-control" placeholder="必填" id="new_unitBasic" type="text" disabled="disabled">
                </div>
                <div class="form-group">
                    <label>产品产量</label>
                    <input class="form-control" placeholder="必填" id="new_productAmount" type="text">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="new_data_submit">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>

<!-- 编辑 -->
<div class="modal fade" id="edit_data" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">编辑</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label>产品名称</label>
                    <select class="form-control" id="edit_company_type" onchange="editCompanyTypeChange()">
                        <option value="">--请选择企业类型--</option>
                        <option value="现有企业">现有企业</option>
                        <option value="新建企业">新建企业</option>
                        <option value="特别企业">特别企业</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>产品名称</label>
                    <select name="productName" class="form-control" id="edit_productName"
                            onclick="editProductNameCheck()" onchange="editProductNameChange()">
                        <option value="">--请选择产品名称--</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>单位产品基准排水量</label>
                    <input class="form-control" placeholder="必填" id="edit_unitBasic" type="text" disabled="disabled">
                </div>
                <div class="form-group">
                    <label>产品产量</label>
                    <input class="form-control" placeholder="必填" id="edit_productAmount" type="text">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="edit_data_submit">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>

<!-- 编辑 2-->
<div class="modal fade" id="edit_data2" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">编辑</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label>排水总量</label>
                    <input class="form-control" placeholder="必填" id="edit_totalAmount" type="text">
                </div>
                <div class="form-group">
                    <label>监控位置</label>
                    <select name="position" class="form-control" id="edit_position"
                            onclick="editPosition()">
                        <option value="">--请选择监控位置--</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>备注</label>
                    <input class="form-control" placeholder="必填" id="edit_note" type="text">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="edit_data_submit2">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<script src="pages/js/field_check.js"></script>
<script src="pages/js/waste_water.js"></script>